; double suma(double a, double b);

global suma

%define a [ebp + 8]
%define b [ebp + 16]

section .text

suma:
	push ebp
	mov ebp, esp
	push esi
	push edi
	push ebx
	
	finit
	fld qword a ; [a]
	fld qword b ; [b|a]
	faddp st1, st0 ; [b + a]
	
fin:
	pop ebx
	pop edi
	pop esi
	pop ebp
	ret
